package com.rxh.pojo.cross;

import java.io.Serializable;
import java.util.Date;

public class BankResult implements Serializable {
    // 成功
    public final static short SUCCESS = 1;
    // 失败
    public final static short FAIL = 2;
    // 超时
    public final static short TIMEOUT = 3;
    // 处理中
    public final static short PROCESSING = 4;

    // 银行状态
    private Short status;
    // 本订单ID
    private Long orderId;
    // 商户订单号
    private String merchantOrderId;
    // 银行订单号（流水号）
    private String bankOrderId;
    // 订单变更ID
    private Long orderChangeId;
    // 银行生成的订单变更ID（现用于保存AllinPay生成新退款ID代替本平台生成的退款ID）
    private String bankRefundId;
    // 通道时间
    private Date bankTime;
    // 通道的商户号
    private Long acquirerNum;
    // 通道返回的结果（所有信息）
    private String bankResult;
    // 通道返回状态码，用于多语言处理以及获取通道文档对应状态码信息
    private String bankCode;
    //通道返回参数
    private String param;

    private Date time;

    public BankResult() {
    }

    public BankResult(Short status) {
        this.status = status;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getMerchantOrderId() {
        return merchantOrderId;
    }

    public void setMerchantOrderId(String merchantOrderId) {
        this.merchantOrderId = merchantOrderId;
    }

    public String getBankOrderId() {
        return bankOrderId;
    }

    public void setBankOrderId(String bankOrderId) {
        this.bankOrderId = bankOrderId;
    }

    public Long getOrderChangeId() {
        return orderChangeId;
    }

    public void setOrderChangeId(Long orderChangeId) {
        this.orderChangeId = orderChangeId;
    }

    public String getBankRefundId() {
        return bankRefundId;
    }

    public void setBankRefundId(String bankRefundId) {
        this.bankRefundId = bankRefundId;
    }

    public Date getBankTime() {
        return bankTime;
    }

    public void setBankTime(Date bankTime) {
        this.bankTime = bankTime;
    }

    public Long getAcquirerNum() {
        return acquirerNum;
    }

    public void setAcquirerNum(Long acquirerNum) {
        this.acquirerNum = acquirerNum;
    }

    public String getBankResult() {
        return bankResult;
    }

    public void setBankResult(String bankResult) {
        this.bankResult = bankResult;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }
}
